package com.lagou.rpc.consumer.config;

import com.lagou.rpc.consumer.proxy.RpcClientProxy;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RpcConfig {

    @Bean
    public RpcClientProxy initProxy(){
        RpcClientProxy proxy = new RpcClientProxy();
        proxy.init();
        return proxy;
    }
}
